package com.szholly.utils.util;

import java.util.List;

/**
 * 树数据结构
 * @author CHENXU
 *
 */
public class TreeDataNode {

	/**
	 * ID
	 */
	private String id;
	/**
	 * Text
	 */
	private String text;
	/**
	 * 状态 'closed'/ 'open'
	 */
	private String state = "closed";
	/**
	 * 
	 */
	private boolean checked = false;
	/**
	 * 属性
	 */
	private Object attributes;
	/**
	 * 子对象
	 */
	private List<TreeDataNode> children;
	
	/**
	 * 拼音首字母
	 */
	private String text_py_;
	
	/**
	 * 拼音全部
	 */
	private String text_fullPy_;

	/**
	 * ��ȡID
	 * 
	 * @return
	 */
	public String getid() {
		return id;
	}

	/**
	 * ����ID
	 * 
	 * @param id
	 */
	public void setid(String id) {
		this.id = id;
	}

	/**
	 * ��ȡ��ʾ�ı�
	 * 
	 * @return
	 */
	public String getText() {
		return this.text;
	}

	/**
	 * ������ʾ�ı�
	 * 
	 * @param value
	 */
	public void setText(String value) {
		this.text = value;
	}

	/**
	 * ��ȡ��ǰ�ڵ�״̬
	 * 
	 * @return
	 */
	public String getState() {
		return this.state;
	}

	/**
	 * ���õ�ǰ�ڵ�״̬
	 * 
	 * @param value
	 */
	public void setState(String value) {
		this.state = value;
	}

	/**
	 * ��ȡ��ǰѡ��״̬
	 * 
	 * @return
	 */
	public boolean getChecked() {
		return this.checked;
	}

	/**
	 * ���õ�ǰѡ��״̬
	 * 
	 * @param value
	 */
	public void setChecked(boolean value) {
		this.checked = value;
	}

	/**
	 * ��ȡ�ڵ��������
	 * 
	 * @return
	 */
	public Object getAttributes() {
		return attributes;
	}

	/**
	 * 
	 * @param value
	 */
	public void setAttributes(Object value) {
		this.attributes = value;
	}

	/**
	 * ��ȡ����ݼ�
	 * 
	 * @return
	 */
	public List<TreeDataNode> getChildren() {
		return children;
	}

	/**
	 * ��������ݼ�
	 * 
	 * @param value
	 */
	public void setChildren(List<TreeDataNode> value) {
		this.children = value;
	}
	
	public String getText_py_() {
		return text_py_;
	}

	public void setText_py_(String text_py_) {
		this.text_py_ = text_py_;
	}

	public String getText_fullPy_() {
		return text_fullPy_;
	}

	public void setText_fullPy_(String text_fullPy_) {
		this.text_fullPy_ = text_fullPy_;
	}
}